import { WinsleiLogManager } from '@winslei/winsleilog'

const TAG = 'StringUtil'

export class StringUtil {
  constructor() {
    WinsleiLogManager.hilogIWithTag(TAG, `constructor`)
  }

  // 是否包含数字
  isContainsNumber(str: string): boolean {
    var reg=/\d/;
    return reg.test(str);
  }

  // 是否为空
  isEmptyStr(str: string): boolean {
    if (str == undefined || str === '') {
      return true
    }
    return false
  }
}